#include <QtGui/QApplication>
#include <QtDeclarative>

#include "rpcconnection.h"
#include "actionmapper.h"
#include "devicelist.h"
#include "inputcontextrpc.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QCoreApplication::setOrganizationName("MediaTrolls");
    QCoreApplication::setOrganizationDomain("www.qtmediahub.com");
    QCoreApplication::setApplicationName("MeeGoRemote");

    QDeclarativeView view;

    qmlRegisterType<RpcConnection>("RpcConnection", 1, 0, "RpcConnection");
    qmlRegisterType<ActionMapper>("ActionMapper", 1, 0, "ActionMapper");
    qmlRegisterType<DeviceList>("DeviceList", 1, 0, "DeviceList");
    qmlRegisterType<InputContextRpc>("InputContextRpc", 1, 0, "InputContextRpc");

    view.setSource(QUrl("qrc:/qml/main.qml"));
    view.showFullScreen();
    return app.exec();
}
